package com.base.propertyread;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertyConfigUtil {
	
	private PropertyConfigUtil(){
		super();
	}
	
	private static Properties prop;
	
	static{
		InputStream inStream = PropertyConfigUtil.class.getClassLoader().getResourceAsStream("jdbc/jdbcconfig.properties");
		 prop = new Properties();    
		try {
			prop.load(inStream);
			inStream.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	
	public static String getProperty(String key){
		
		return prop.getProperty(key);
	}
	

}
